<?php


/**
 * Class wich manages preferences of a user
 */
class BabiliUserPreferences {
	
	/**
	 * Function that give preferences of the user on a project
	 * @param $userid
	 * @param $projectid
	 * @return array ('filter' => $filter, 'languages' => array of lnaguage ids)
	 */
	public function get_user_preferences_project($userid, $projectid){
		
	}
	
	/**
	 * Function that set user preferences
	 * @param $userid
	 * @param $projectid
	 * @param $preferences array('filter' => $filter, 'languages' => array(1, 2, 'FR))
	 * 					   in the language array you can put id or ISO CODE
	 * @return bool true if successful, false else
	 */
	public function set_user_preferences_project($userid, $projectid, $preferences){
		
	}
}